package com.bfly.mall.product.dto;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 运费模板计价方式表单DTO
 *
 * @author 长沙商脉科技有限公司
 * @date 2020/4/27 10:49
 */
public class FreightTemplatePricingFormDTO implements Serializable {

    private static final long serialVersionUID = 3154456353809221133L;

    private int shippingMethod;

    /**
     * 运输城市 存id,格式为'省'或'省-市',以','分隔
     *
     * @author 长沙商脉科技有限公司
     * @date 2020/4/27 10:51
     */
    private String citys;

    /**
     * 城市名称
     *
     * @author 长沙商脉科技有限公司
     * @date 2020/10/9 21:54
     */
    private String cityNames;
    private int firstPiece;
    private int nextPiece;
    private BigDecimal firstWeight;
    private BigDecimal nextWeight;
    private BigDecimal firstVolume;
    private BigDecimal nextVolume;
    @NotNull(message = "首费不能为空!")
    private BigDecimal firstPrice;
    @NotNull(message = "续费不能为空!")
    private BigDecimal nextPrice;
    private boolean defaults;

    public int getShippingMethod() {
        return shippingMethod;
    }

    public void setShippingMethod(int shippingMethod) {
        this.shippingMethod = shippingMethod;
    }

    public String getCitys() {
        return citys;
    }

    public void setCitys(String citys) {
        this.citys = citys;
    }

    public String getCityNames() {
        return cityNames;
    }

    public void setCityNames(String cityNames) {
        this.cityNames = cityNames;
    }

    public int getFirstPiece() {
        return firstPiece;
    }

    public void setFirstPiece(int firstPiece) {
        this.firstPiece = firstPiece;
    }

    public int getNextPiece() {
        return nextPiece;
    }

    public void setNextPiece(int nextPiece) {
        this.nextPiece = nextPiece;
    }

    public BigDecimal getFirstWeight() {
        return firstWeight;
    }

    public void setFirstWeight(BigDecimal firstWeight) {
        this.firstWeight = firstWeight;
    }

    public BigDecimal getNextWeight() {
        return nextWeight;
    }

    public void setNextWeight(BigDecimal nextWeight) {
        this.nextWeight = nextWeight;
    }

    public BigDecimal getFirstVolume() {
        return firstVolume;
    }

    public void setFirstVolume(BigDecimal firstVolume) {
        this.firstVolume = firstVolume;
    }

    public BigDecimal getNextVolume() {
        return nextVolume;
    }

    public void setNextVolume(BigDecimal nextVolume) {
        this.nextVolume = nextVolume;
    }

    public BigDecimal getFirstPrice() {
        return firstPrice;
    }

    public void setFirstPrice(BigDecimal firstPrice) {
        this.firstPrice = firstPrice;
    }

    public BigDecimal getNextPrice() {
        return nextPrice;
    }

    public void setNextPrice(BigDecimal nextPrice) {
        this.nextPrice = nextPrice;
    }

    public boolean isDefaults() {
        return defaults;
    }

    public void setDefaults(boolean defaults) {
        this.defaults = defaults;
    }
}
